<template>
    <p>{{title}}:{{state.count}}</p>
    <button @click="state.count++">+</button>
</template>
<script setup lang="ts">
import {reactive} from 'vue'
interface State{
    count:number;
}
const {title} = defineProps(['title']);
const state = reactive<State>({
  count:0
});
</script>